/* 地图页面样式 */

.map-container {
    position: relative;
    height: calc(100vh - 200px);
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    overflow: hidden;
}

.map-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 60%;
}

.island-outline {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 200px;
}

/* 景点标记 */
.attraction-marker {
    position: absolute;
    cursor: pointer;
    transition: all 0.3s ease;
}

.attraction-marker:hover {
    transform: scale(1.1);
}

.marker-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    animation: bounce 2s infinite;
}

.marker-label {
    position: absolute;
    top: 36px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255,255,255,0.9);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 当前位置 */
.current-location {
    position: absolute;
    top: 60%;
    left: 40%;
}

.location-dot {
    width: 16px;
    height: 16px;
    background: #2196f3;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    position: relative;
    z-index: 2;
}

.location-pulse {
    position: absolute;
    top: -8px;
    left: -8px;
    width: 32px;
    height: 32px;
    background: rgba(33, 150, 243, 0.3);
    border-radius: 50%;
    animation: pulse 2s infinite;
    z-index: 1;
}

/* 地图控制按钮 */
.map-controls {
    position: absolute;
    right: 20px;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.control-btn {
    width: 44px;
    height: 44px;
    background: white;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.control-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.control-btn i {
    color: #666;
    font-size: 16px;
}

/* 底部信息面板 */
.bottom-panel {
    position: fixed;
    bottom: 80px;
    left: 0;
    right: 0;
    max-height: 200px;
    overflow-y: auto;
}

.nearby-item {
    padding: 12px;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.nearby-item:hover {
    background: #f8f9fa;
    transform: translateX(4px);
}

/* 动画效果 */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* 搜索栏样式 */
input[type="text"]:focus {
    box-shadow: 0 0 0 3px rgba(46, 139, 87, 0.1);
}

/* 滚动条美化 */
.bottom-panel::-webkit-scrollbar {
    width: 4px;
}

.bottom-panel::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.bottom-panel::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 2px;
}

.bottom-panel::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}